]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
5 years agounlockDialog: Properly reset auth prompt when showing it
Ray Strode [Tue, 5 Oct 2021 15:01:19 +0000 (11:01 -0400)]
unlockDialog: Properly reset auth prompt when showing it

If a user hits escape twice really fast when coming back to
their machine to unlock it, they made end up getting presented
with a non-functional unlock screen that doesn't show their
user icon and doesn't ask for a password.

This is because showPrompt assumes that if an auth prompt already
exists, it's ready to go. That may not be true, if it's in the
process of getting torn down at the time because it's in the middle
of a cancel animation.

This commit solves the problem by ensuring the auth prompt is always
in a fresh reset state before showing it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1999>

5 years agounlockDialog: Don't create AuthDialog just to finish it
Ray Strode [Fri, 8 Oct 2021 15:08:17 +0000 (11:08 -0400)]
unlockDialog: Don't create AuthDialog just to finish it

If the the unlock dialog gets finished before an auth dialog is
created, the code currently creates one just to tell it to finish.

This commit changes the code to skip creating the auth dialog in
that case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1999>

5 years agonotificationDaemon: Fix sound-file support
Florian Müllner [Mon, 27 Sep 2021 13:40:05 +0000 (15:40 +0200)]
notificationDaemon: Fix sound-file support

When commit 25bfe99ed53b5b7 replaced the thin libcanberra wrapper
with the (then) new MetaSoundPlayer API, it missed that the latter
expects files as GFile instead of a file path.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1991>

5 years agoscreenshot: Unrestrict PickColor
Florian Müllner [Sat, 25 Sep 2021 12:15:32 +0000 (14:15 +0200)]
screenshot: Unrestrict PickColor

Commit dd2cd6286cd3 restricted callers of the screenshot methods to
portal implementations, gnome-settings-daemon and gnome-screenshot.

That restriction does make sense for the actual screenshot methods,
but `PickColor` is actually used by GTK in its color picker (and
therefore may be called from arbitrary applications).

Fix this by unrestricting access to `PickColor` again. Considering that
the method is always interactive, it's not very privacy/security-sensitive
anyway.

https://gitlab.gnome.org/GNOME/gtk/-/issues/4283

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1990>

5 years agoAdd screen protect status icons
Jakub Steiner [Mon, 4 Oct 2021 14:58:33 +0000 (16:58 +0200)]
Add screen protect status icons

  - OSD needs them

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4662

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1996>

5 years agoUpdate Croatian translation
Goran Vidović [Wed, 6 Oct 2021 17:08:50 +0000 (17:08 +0000)]
Update Croatian translation

5 years agowelcomeDialog: Fix title translation
Florian Müllner [Tue, 5 Oct 2021 13:05:18 +0000 (15:05 +0200)]
welcomeDialog: Fix title translation

Translators translate the format string ('... GNOME %s'), not the
substituted one ('... GNOME 41').

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4669

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1998>

5 years agoinputMethod: Clear preeditStr before reset
Christian Hergert [Wed, 29 Sep 2021 19:46:45 +0000 (12:46 -0700)]
inputMethod: Clear preeditStr before reset

Previously, these were performed in a different order before GNOME 41.
During some other changes they were swapped.

However, this causes both GTK 3 and GTK 4 applications to scroll to
incorrect positions from the preedit change.

Fixes #4647
Fixes GNOME/gtk#4289
Fixes GNOME/gnome-builder#1536
Fixes GNOME/gnome-builder#1531

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1993>

5 years agost/icon: Ensure icons are updated if theme node is invalid
Marco Trevisan (Treviño) [Wed, 22 Sep 2021 21:37:16 +0000 (23:37 +0200)]
st/icon: Ensure icons are updated if theme node is invalid

Icons that are changed while an actor is not mapped may not have a theme
node associated with, and thus we'd end up not updating them at all.
In fact we return early in st_update_icon(), and this was not an issue
until commit 0b1dfbf6f3f, because we'd end up to update the icon anyways
once the style was changed (and so with a valid theme node), but since
such change we might not updating the icon if no theme detail changed.

To prevent this, add a flag to require an icon update when the theme
changed, if no successfully update happened earlier.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4568
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1983>

5 years agoUpdate Icelandic translation
Sveinn í Felli [Thu, 30 Sep 2021 13:09:18 +0000 (13:09 +0000)]
Update Icelandic translation

5 years agoUpdate Hebrew translation
Yaron Shahrabani [Mon, 27 Sep 2021 08:14:57 +0000 (08:14 +0000)]
Update Hebrew translation

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 26 Sep 2021 12:18:02 +0000 (12:18 +0000)]
Update Turkish translation

5 years agoUpdate Vietnamese translation
Ngọc Quân Trần [Sun, 26 Sep 2021 01:29:27 +0000 (01:29 +0000)]
Update Vietnamese translation

5 years agoAlways assume GLSL is supported
Jonas Ådahl [Tue, 21 Sep 2021 14:35:32 +0000 (16:35 +0200)]
Always assume GLSL is supported

The support for GLSL has been advertised as unconditionally supported by
mutter for a while, and has now lost the 'GLSL' feature completely. Lets
remove the checks.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1985>

5 years agoUpdate Serbian translation
Марко Костић [Mon, 20 Sep 2021 04:23:46 +0000 (04:23 +0000)]
Update Serbian translation

5 years agoBump version to 41.0
Florian Müllner [Sun, 19 Sep 2021 10:45:39 +0000 (12:45 +0200)]
Bump version to 41.0

Update NEWS.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1981>

5 years agoUpdate Greek translation
Efstathios Iosifidis [Fri, 17 Sep 2021 18:42:18 +0000 (18:42 +0000)]
Update Greek translation

5 years agoUpdate Catalan translation
Jordi Mas [Thu, 16 Sep 2021 19:31:00 +0000 (21:31 +0200)]
Update Catalan translation

5 years agoUpdated Danish translation
Alan Mortensen [Thu, 16 Sep 2021 15:06:09 +0000 (17:06 +0200)]
Updated Danish translation

5 years agoUpdate Bulgarian translation
Alexander Shopov [Wed, 15 Sep 2021 12:04:45 +0000 (12:04 +0000)]
Update Bulgarian translation

5 years agoUpdate Finnish translation
Jiri Grönroos [Tue, 14 Sep 2021 10:18:57 +0000 (10:18 +0000)]
Update Finnish translation

5 years agoUpdate Occitan translation
Quentin PAGÈS [Mon, 13 Sep 2021 19:52:55 +0000 (19:52 +0000)]
Update Occitan translation

5 years agoUpdate Dutch translation
Nathan Follens [Mon, 13 Sep 2021 14:59:11 +0000 (14:59 +0000)]
Update Dutch translation

5 years agoUpdate Polish translation
Piotr Drąg [Sat, 11 Sep 2021 13:49:13 +0000 (13:49 +0000)]
Update Polish translation

5 years agoUpdate Hungarian translation
Balázs Úr [Fri, 10 Sep 2021 23:09:03 +0000 (23:09 +0000)]
Update Hungarian translation

5 years agoUpdate Punjabi translation
Aman Alam [Thu, 9 Sep 2021 03:40:05 +0000 (03:40 +0000)]
Update Punjabi translation

5 years agoUpdate Catalan translation
Jordi Mas [Tue, 7 Sep 2021 20:32:11 +0000 (22:32 +0200)]
Update Catalan translation

5 years agoUpdate Croatian translation
Goran Vidović [Tue, 7 Sep 2021 19:49:49 +0000 (19:49 +0000)]
Update Croatian translation

5 years agoUpdate Croatian translation
Goran Vidović [Tue, 7 Sep 2021 19:48:16 +0000 (19:48 +0000)]
Update Croatian translation

5 years agoBump version to 41.rc.1
Florian Müllner [Tue, 7 Sep 2021 13:15:11 +0000 (15:15 +0200)]
Bump version to 41.rc.1

Update NEWS.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1976>

5 years agobuild: Add option to turn off tests
Florian Müllner [Sun, 5 Sep 2021 22:57:33 +0000 (00:57 +0200)]
build: Add option to turn off tests

St's theme test now requires the libmutter-test library, which is only
built when tests are enabled. Instead of mandating a particular build
configuration in mutter, add a corresponding option in gnome-shell as
well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1975>

5 years agobuild: Check sassc errors when generating stylesheets
Florian Müllner [Sun, 5 Sep 2021 22:38:54 +0000 (00:38 +0200)]
build: Check sassc errors when generating stylesheets

We currently just call sassc, but don't check its return value. That
means as long as sassc is available, the script (and therefore the
newly added dist CI job) will succeed.

Make sure we fail on failure.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1974>

5 years agoUpdate Romanian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 09:48:58 +0000 (09:48 +0000)]
Update Romanian translation

5 years agoBump version to 41.rc
Florian Müllner [Wed, 1 Sep 2021 23:39:29 +0000 (01:39 +0200)]
Bump version to 41.rc

Update NEWS.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1971>

5 years agoci: Add dist job
Florian Müllner [Tue, 31 Aug 2021 11:06:22 +0000 (13:06 +0200)]
ci: Add dist job

So far, releases are done locally by invoking `meson dist`.

We can do better and leverage the existing CI infrastructure, to get
to the following release workflow:

 - bump version in meson.build, update NEWS etc.
 - open merge request for the release
 - merge when the pipeline (including dist check) succeeds
 - tag the release
 - wait for the tag pipeline to spit out the tarball artifact

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1968>

5 years agoci: Reindent yaml configuration
Florian Müllner [Tue, 31 Aug 2021 10:54:19 +0000 (12:54 +0200)]
ci: Reindent yaml configuration

Most GNOME projects have settled on a 2-space indentation, so switch
to that. This will ease the ongoing copy+paste between projects :-)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1968>

5 years agobuild: Move metainfo version check into distscript
Florian Müllner [Tue, 31 Aug 2021 10:25:28 +0000 (12:25 +0200)]
build: Move metainfo version check into distscript

The time we really care about current release information in appdata is
when preparing a release, not during regular builds.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1968>

5 years agobuild: Check NEWS for version
Florian Müllner [Tue, 31 Aug 2021 10:21:02 +0000 (12:21 +0200)]
build: Check NEWS for version

I don't think this ever happened to me, but it can't hurt enforcing
that every release has a corresponding NEWS entry.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1968>

5 years agoUpdate Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 14:59:50 +0000 (14:59 +0000)]
Update Korean translation

5 years agoshell/util: Remove get_content_for_window_actor()
Robert Mader [Wed, 9 Jun 2021 19:18:21 +0000 (21:18 +0200)]
shell/util: Remove get_content_for_window_actor()

It got replaced by `meta_window_actor_paint_to_content()`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1879>

5 years agowindowManager: Use MetaWindowActor.paint_to_content() for window effects
Robert Mader [Sun, 6 Jun 2021 12:29:47 +0000 (14:29 +0200)]
windowManager: Use MetaWindowActor.paint_to_content() for window effects

Previously we used `get_image()`, which returned `cairo_surface`,
in order to create a `ClutterContent` with a screenshot of the
`MetaWindowActor`. This added a roundtrip from GPU to CPU memory.

Instead, use the new `paint_to_content()` API which lets us use a
`CoglTexture` directly as source of our `ClutterContent`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1879>

5 years agoinputMethod: Use update-preedit-with-mode signal
Carlos Garnacho [Tue, 27 Jul 2021 14:52:32 +0000 (16:52 +0200)]
inputMethod: Use update-preedit-with-mode signal

This signal announces the preferred commit mode of the preedit text when
the input context is reset. Keep this mode around, and ensure to honor this
mode (e.g. maybe commit the preedit string) whenever the input method would
be reset.

This is delegated to the internal layers, so propagate this mode via
clutter_input_method_set_preedit_text().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1929>

5 years agoscreenshot: Restrict callers
Florian Müllner [Wed, 16 Jun 2021 20:11:50 +0000 (22:11 +0200)]
screenshot: Restrict callers

The shell D-Bus API was always meant as a private API for core
components, so enforce that by limiting caller to a list of
allowed well-known names.

Applications that want to request a screenshot can use the corresponding
desktop portal.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agoshellDBus: Restrict callers
Florian Müllner [Thu, 17 Jun 2021 13:29:42 +0000 (15:29 +0200)]
shellDBus: Restrict callers

The org.gnome.Shell interface provides a private API to other core
components to implement desktop functionalities like Settings or
global keybindings. It is not meant as a public API, so limit it
to a set of expected callers.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agoshellDBus: Implement all methods asynchronously
Florian Müllner [Thu, 17 Jun 2021 13:29:42 +0000 (15:29 +0200)]
shellDBus: Implement all methods asynchronously

In order to restrict callers, we will need access to the invocation,
not just the unpacked method parameters.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agointrospect: Split out DBusSenderChecker
Florian Müllner [Wed, 16 Jun 2021 17:09:42 +0000 (19:09 +0200)]
introspect: Split out DBusSenderChecker

Restricting callers to a list of allowed senders is useful for
other D-Bus services as well, so split out the existing code
into a reusable class.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agodata: Remove now unused "introspect" setting
Florian Müllner [Wed, 1 Sep 2021 19:25:26 +0000 (21:25 +0200)]
data: Remove now unused "introspect" setting

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agointrospect: Use MetaContext:unsafe-mode instead of setting
Florian Müllner [Wed, 1 Sep 2021 19:18:42 +0000 (21:18 +0200)]
introspect: Use MetaContext:unsafe-mode instead of setting

The property was added precisely for this purpose, except that its
name isn't tied to the introspect API.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agointrospect: Make invocation check error-based
Florian Müllner [Thu, 2 Sep 2021 14:23:38 +0000 (16:23 +0200)]
introspect: Make invocation check error-based

If we throw an error when the invocation isn't allowed instead of
returning false, we can simply return that error instead of duplicating
the error handling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agoshellDBus: Use MetaContext:unsafe-mode to restrict Eval()
Florian Müllner [Wed, 16 Jun 2021 23:50:50 +0000 (01:50 +0200)]
shellDBus: Use MetaContext:unsafe-mode to restrict Eval()

The Eval() method is unarguably the most sensitive D-Bus method
we expose, since it allows running arbitrary code in the compositor.

It is currently tied to the `development-tools` settings that is
enabled by default. As users have become accustomed to the built-in
commands that are enabled by the same setting (restart, lg, ...),
that default cannot easily be changed.

In order to restrict the method without affecting the rather harmless
commands, guard it by the new MetaContext:unsafe-mode property instead
of the setting.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agopanel: Show warning indicator when unsafe-mode is on
Florian Müllner [Thu, 2 Sep 2021 15:15:36 +0000 (17:15 +0200)]
panel: Show warning indicator when unsafe-mode is on

MetaContext added an unsafe-mode property, which we will use to restrict
a number of privileged operations unless it is enabled. It is meant to
only be enabled temporarily for development/debugging purposes, so add
a scary icon to the top bar as a reminder to turn it off again.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>

5 years agoUpdate Chinese (China) translation
Boyuan Yang [Fri, 3 Sep 2021 18:09:05 +0000 (18:09 +0000)]
Update Chinese (China) translation

5 years agoUpdate Persian translation
Danial Behzadi [Fri, 3 Sep 2021 10:47:09 +0000 (10:47 +0000)]
Update Persian translation

5 years agoboxpointer: Fix positioning with non-widget sources
Florian Müllner [Wed, 1 Sep 2021 18:37:13 +0000 (20:37 +0200)]
boxpointer: Fix positioning with non-widget sources

Commit 16d371873 lifted the requirement for source actors to be
widgets, then got it wrong :rolling_eyes:

The content box is expected to be in actor coordinates, so the
allocation must be translated to (0, 0).

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4593

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1969>

5 years agoUpdated Lithuanian translation
Aurimas Černius [Wed, 1 Sep 2021 20:06:41 +0000 (23:06 +0300)]
Updated Lithuanian translation

5 years agowindowManager: Discard workspace scroll smooth events
José Expósito [Mon, 23 Aug 2021 16:30:02 +0000 (18:30 +0200)]
windowManager: Discard workspace scroll smooth events

Since touchpad smooth scroll events with source finger are handled by
the swipeTracker, the workspace scroll handler can focus on discrete
events.

Thanks to Mutter emulating discrete scroll events, see
meta_seat_impl_notify_scroll_continuous_in_impl in meta-seat-impl.c,
it is safe to ignore smooth scroll in the workspace scroll handler
and handle exclusively discrete events.

In addition, once high-resolution scroll events land in Mutter [1], a
mouse will be able generate non emulated smooth scroll events that
should be ignored in favour of the discrete scroll events.
Otherwise, a single mouse wheel click will scroll through multiple
workspaces at once.

[1] https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1962

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1959>

5 years agolayout: Exclude hidden actors from struts
Florian Müllner [Thu, 26 Aug 2021 19:54:15 +0000 (21:54 +0200)]
layout: Exclude hidden actors from struts

Currently we only exclude hidden actors from the input region,
but not from struts. This is an oversight that went unnoticed
until now, probably because we didn't consider the work area
in the overview until recently.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4569

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1963>

5 years agokeyboard: Ensure chrome input region is updated after slide animation
Sebastian Keller [Tue, 17 Aug 2021 22:45:16 +0000 (00:45 +0200)]
keyboard: Ensure chrome input region is updated after slide animation

The keyboard is placed outside of the screen when shown and then slides
in via a transition that changes the translate-y property. This
translation does not affect the allocation of the Keyboard actor and as
such does not trigger any of the signals LayoutManager is connected to
to update the input region. This means the input region remains at the
original position of the actor outside of the screen and as a result on
X11 clicks will go through to the underlying window.

There was a workaround for this by queuing a relayout at the end of the
transition, but this stopped working due to optimizations avoiding
unnecessary allocation changes.

This updates that workaround to toggle the visibility of the actor
instead, which is the other signal that LayoutManager reacts to. Once
ClutterActor provides better ways to react to transforms this can
hopefully be removed entirely.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4556
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1955>

5 years agodash: Fixes wrong separator position
Raghuveer Kasaraneni [Mon, 12 Apr 2021 10:56:28 +0000 (12:56 +0200)]
dash: Fixes wrong separator position

Sometimes when an icon is dragged and dropped in Dash, one Favourite app icon
can appear to the right of Dash separator. This can happen when available system
resources are low and the PlaceHolder destroy animation is delayed and the
corresponding container child is still present. With this commit the separator
position is calculated correctly, even when the animation is pending.

Fixes #3966, #3799

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1804>

5 years agoworkspace: Move fading minimized windows out of allocation
Sebastian Keller [Thu, 19 Aug 2021 18:58:31 +0000 (20:58 +0200)]
workspace: Move fading minimized windows out of allocation

eee2ccac fixed window opacity being changed outside of transitions but
resulted in the final step of the transition, that would set the window
to fully opaque, being missed.

This change now moves the opacity change entirely out of allocation and
instead follows the adjustment changes directly, which still fixes the
original bug and ensures the opacity is also applied for the last step
in the transition.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4561
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1957>

5 years agoinit: Set console log domain
Evan Welsh [Sat, 21 Aug 2021 01:42:27 +0000 (20:42 -0500)]
init: Set console log domain

GJS added a console module that extensions may start using. To ensure that
extensions using console.log() and similar functions don't show up as
'Gjs-Console' in users' system logs, we should call setConsoleLogdomain()
with 'GNOME Shell'.

This GJS API addition is only accessible using ECMAScript Modules (ESM),
this commit moves shell startup to a small init.js module and adapts
CI jobs to either handle or ignore it.

We can drop the .jscheckignore file when future versions of SpiderMonkey
allow for compile checks without validating module specifiers.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1958>

5 years agocleanup: Replace non-standard ByteArray module
Florian Müllner [Thu, 12 Aug 2021 14:38:57 +0000 (16:38 +0200)]
cleanup: Replace non-standard ByteArray module

gjs landed support for TextDecoder/TextEncoder. Use those instead
of gjs' own ByteArray module.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1946>

5 years agoworkspace: Update bg border radius in constructor
Ivan Molodetskikh [Mon, 16 Aug 2021 07:00:51 +0000 (10:00 +0300)]
workspace: Update bg border radius in constructor

Otherwise non-zero initial value of stateAdjustment will produce
incorrect radius.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1964>

5 years agobuild: Add soup2 option
Florian Müllner [Sun, 29 Aug 2021 12:24:42 +0000 (14:24 +0200)]
build: Add soup2 option

!1940 added support for soup 3, including a fallback to soup 2.4
where the newer version isn't available.

Unfortunately it missed that libgweather has a hidden soup dependency,
and now gnome-shell fails to start if a weather location has been set
up and soup 3 is available.

We don't have a good way to detect that case, so hide the soup 3 support
behind a build option. Distributors are expected to switch it at the
same time as libgweather.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1966>

5 years agoUpdate Swedish translation
Luna Jernberg [Tue, 31 Aug 2021 20:46:21 +0000 (20:46 +0000)]
Update Swedish translation

5 years agoUpdate French translation
Charles Monzat [Tue, 31 Aug 2021 19:50:29 +0000 (19:50 +0000)]
Update French translation

5 years agomain: Stop handling old 'panel-main-menu' shortcut
Florian Müllner [Thu, 3 Jun 2021 18:12:35 +0000 (20:12 +0200)]
main: Stop handling old 'panel-main-menu' shortcut

It's a shortcut from the GNOME 2 days that few users will remember.
And if anyone really wants to keep it, they can use Settings to
assign <Alt>F1 to 'toggle-overview'.

https://discourse.gnome.org/t/difference-between-show-the-overview-and-show-the-activities-overview-keyboard-shortcuts/6572

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1871>

5 years agoUpdate Slovak translation
Dušan Kazik [Tue, 31 Aug 2021 13:50:41 +0000 (13:50 +0000)]
Update Slovak translation

5 years agoUpdate Slovenian translation
Matej Urbančič [Mon, 30 Aug 2021 19:16:23 +0000 (19:16 +0000)]
Update Slovenian translation

5 years agoUpdate German translation
Philipp Kiemle [Sun, 29 Aug 2021 17:33:10 +0000 (17:33 +0000)]
Update German translation

5 years agoUpdate British English translation
Bruce Cowan [Sat, 28 Aug 2021 10:14:51 +0000 (10:14 +0000)]
Update British English translation

5 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sat, 28 Aug 2021 06:21:55 +0000 (06:21 +0000)]
Update Kazakh translation

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 27 Aug 2021 21:28:23 +0000 (21:28 +0000)]
Update Turkish translation

5 years agoUpdate Finnish translation
Jiri Grönroos [Fri, 27 Aug 2021 17:50:01 +0000 (17:50 +0000)]
Update Finnish translation

5 years agoUpdate Belarusian translation
Źmicier Turok [Fri, 27 Aug 2021 09:01:12 +0000 (09:01 +0000)]
Update Belarusian translation

5 years agonotificationDaemon: Remove rewriteRules
Ivan Molodetskikh [Thu, 26 Aug 2021 11:42:59 +0000 (11:42 +0000)]
notificationDaemon: Remove rewriteRules

It's not really Shell's business to fix bad app notification contents.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1962>

5 years agonetworkAgent: Fix order of _() and format()
Ivan Molodetskikh [Thu, 26 Aug 2021 07:55:03 +0000 (07:55 +0000)]
networkAgent: Fix order of _() and format()

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1961>

5 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 25 Aug 2021 14:55:42 +0000 (16:55 +0200)]
Updated Spanish translation

5 years agoUpdate Galician translation
Fran Dieguez [Wed, 25 Aug 2021 05:57:36 +0000 (05:57 +0000)]
Update Galician translation

5 years agoenvironment: Fallback to Soup 2.4
Florian Müllner [Wed, 4 Aug 2021 17:37:15 +0000 (19:37 +0200)]
environment: Fallback to Soup 2.4

We cannot assume yet that Soup3 is available everywhere. Until that
is the case, allow falling back to Soup 2.4 by imitating the bits
of the Soup3 API we use with monkey-patching.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoextensionDownloader: Port to Soup3
Florian Müllner [Tue, 3 Aug 2021 23:35:08 +0000 (01:35 +0200)]
extensionDownloader: Port to Soup3

After 13 years, Soup will release a new, API-incompatible
version[0]. This is a good thing, make sure we support it.

[0] https://blog.tingping.se/2021/02/23/future-of-libsoup.html

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoextensionDownloader: Use plain Soup.Session
Florian Müllner [Tue, 3 Aug 2021 22:28:25 +0000 (00:28 +0200)]
extensionDownloader: Use plain Soup.Session

Unlike for the old Soup.SessionSync/SessionAsync classes,
Soup.Session:ssl-use-system-ca-file already defaults to true.

In Soup3, the behavior was made unconditional and the property
removed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoextensionDownloader: Stop setting proxy resolver explicitly
Florian Müllner [Tue, 3 Aug 2021 22:24:41 +0000 (00:24 +0200)]
extensionDownloader: Stop setting proxy resolver explicitly

Quoting the documentation:

  In libsoup 2.44 and later, you can set the session's “proxy-resolver”
  property to the resolver returned by g_proxy_resolver_get_default() to
  get the same effect. Note that for "plain" SoupSessions (ie, not
  SoupSessionAsync or SoupSessionSync), this is done for you automatically.

libsoup 2.44 was released in 2013, so we can safely assume that Soup is
new enough to handle this for us.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoportalHelper: Replace Soup.URI with GLib.Uri
Florian Müllner [Sat, 7 Aug 2021 01:38:15 +0000 (03:38 +0200)]
portalHelper: Replace Soup.URI with GLib.Uri

GLib.Uri was added a while ago, and can replace our usage of Soup.URI.
In fact, the upcoming Soup3 drops its own URI type in favor of GLib.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoextensionDownloader: Use async code for extracting archive
Florian Müllner [Fri, 6 Aug 2021 22:07:30 +0000 (00:07 +0200)]
extensionDownloader: Use async code for extracting archive

The code that handles extracting extension archives currently uses
an awkward double-callback system. We can do significantly better
by using an async function and exceptions.

Partially based on code from Marco Trevisan.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoextensionDownloader: Stop returning distinct errors
Florian Müllner [Fri, 6 Aug 2021 21:24:24 +0000 (23:24 +0200)]
extensionDownloader: Stop returning distinct errors

Nothing looks at our made-up errors, so we can just as well return
a generic "ExtensionError".

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoextensionDownloader: Fix up style
Florian Müllner [Fri, 6 Aug 2021 22:47:24 +0000 (00:47 +0200)]
extensionDownloader: Fix up style

Move all remaining bits to the new coding style before making
further changes.

The let → const changes are selectively done to the bits that'll
still be around at the end of the patch series.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>

5 years agoci: Expose meson's Junit test results to gitlab
Florian Müllner [Thu, 5 Aug 2021 14:47:57 +0000 (16:47 +0200)]
ci: Expose meson's Junit test results to gitlab

Turns out meson has been generated Junit XML files of its test
results since 0.55 ...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1937>

5 years agosubprojects: Use meson compile to generate translations
Florian Müllner [Thu, 5 Aug 2021 13:45:38 +0000 (15:45 +0200)]
subprojects: Use meson compile to generate translations

... for the same cosmetic reasons as the previous commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1937>

5 years agoci: Use backend-agnostic meson commands
Florian Müllner [Thu, 5 Aug 2021 01:46:53 +0000 (03:46 +0200)]
ci: Use backend-agnostic meson commands

There's no alternative backend in sight for us, but it's nice to
only deal with a single build tool.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1937>

5 years agoeslint: (Mostly) synchronize configuration with gjs
Florian Müllner [Thu, 12 Aug 2021 15:12:15 +0000 (17:12 +0200)]
eslint: (Mostly) synchronize configuration with gjs

In addition to the changes in this commit, gjs now
restricts the use of the Format module and initFormat.
We can't really replace those for translatable strings
until xgettext gains support for template strings, so
leave that bit out for now.

The other notable change is that gjs now requires
jsdoc comments. We can't plainly enable those options
without a massive amount of work first, but let's see
how requiring doc comments for new code goes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1949>

5 years agoci: Include eslint-plugin-jsdoc in js image
Florian Müllner [Thu, 12 Aug 2021 21:20:21 +0000 (23:20 +0200)]
ci: Include eslint-plugin-jsdoc in js image

gjs started to require it in its config, so we need it
if we want to keep our configuration in sync.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1949>

5 years agoUpdated Czech translation
Marek Černocký [Mon, 23 Aug 2021 22:14:12 +0000 (00:14 +0200)]
Updated Czech translation

5 years agoextensions-tool: Remove GNOME Software reference from man page
Florian Müllner [Wed, 18 Aug 2021 15:20:49 +0000 (17:20 +0200)]
extensions-tool: Remove GNOME Software reference from man page

It no longer manages extensions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1956>

5 years agomessageTray: Do not show low priority notifications
Florian Müllner [Fri, 18 Jun 2021 21:15:05 +0000 (23:15 +0200)]
messageTray: Do not show low priority notifications

Low priority notifications are meant for information that doesn't require
immediate attention, so it makes sense to not show a banner for them;
they'll still appear in the notification list in the calendar.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4265

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1893>

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Sun, 22 Aug 2021 04:45:37 +0000 (04:45 +0000)]
Update Indonesian translation

5 years agoUpdate Persian translation
Danial Behzadi [Sat, 21 Aug 2021 11:26:51 +0000 (11:26 +0000)]
Update Persian translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Fri, 20 Aug 2021 08:19:41 +0000 (08:19 +0000)]
Update Basque translation

5 years agoUpdate Russian translation
Alexey Rubtsov [Fri, 20 Aug 2021 07:12:23 +0000 (07:12 +0000)]
Update Russian translation

5 years agowindowManager: Animate the appearance of new windows after overview closes
Daniel van Vugt [Thu, 17 Sep 2020 07:25:49 +0000 (15:25 +0800)]
windowManager: Animate the appearance of new windows after overview closes

So that the animation doesn't get skipped if the overview is visible but
in the process of closing.

In this case the overview being visible also means that it is closing,
because if it's visible and not already closing then `_shouldAnimateActor`
would have returned false and exited `_mapWindow` earlier.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1814,
       https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3242

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>